import Mock from 'mockjs'
import { builder } from './util.js'

const userinfo = () => {
	return builder({
		'username': '15050835601',
		'avatarUrl': 'https://wx-xinpeng-upload.oss-cn-hangzhou.aliyuncs.com/20180903/1535944424773.jpg'
	}, '', 1)
}

Mock.mock('http://localhost/api/user', 'get', userinfo)